package com.example.cloud.model.business.reservation;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by wangtao on 2018/1/26.
 * 治疗任务
 */
@Entity(name = "treatment_task")
@EqualsAndHashCode(callSuper = true)
@Data
public class TreatmentTask extends CommonModel{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 患者名称
    @Column(name = "patient_name")
    private String patientName;
    // 病历号
    @Column(name = "medical_number")
    private String medicalNumber;
    // 预约主键
    @Column(name = "reservation_id")
    private Long reservationId;
    // 预约专家
    @Column(name = "expert_id")
    private Long expertId;
    // 专家名称
    @Column(name = "expert_name")
    private String expertName;
    // 预约医生
    @Column(name = "doctor_id")
    private Long doctorId;
    // 医生姓名
    @Column(name = "doctor_name")
    private String doctorName;
    // 预约护士
    @Column(name = "nurse_id")
    private Long nurseId;
    // 护士姓名
    @Column(name = "nurse_name")
    private String nurseName;
    // 治疗项目
    @Column(name = "project_id")
    private Long projectId;
    // 治疗项目名称
    @Column(name = "project_name")
    private String projectName;
    // 治疗设备
    @Column(name = "equipment_id")
    private Long equipmentId;
    // 治疗设备名称
    @Column(name = "equipment_name")
    private String equipmentName;
    // 治疗开始时间
    @Column(name = "start_time")
    private Date startTime;
    // 治疗结束时间
    @Column(name = "end_time")
    private Date endTime;
    // 备注
    @Column(name = "remark")
    private String remark;
    // 治疗状态
    @Column(name = "status")
    private int status;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 用户编号
    @Column(name = "user_id")
    private Long userId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
    @Transient
    private String startTimeStr;
    @Transient
    private String endTimeStr;
}
